package org.jim.core.packets;

import org.jim.core.ImStatus;

public class GroupResult {
    private ImStatus status;
    private Group group;

    public ImStatus getStatus() {
        return status;
    }

    public void setStatus(ImStatus status) {
        this.status = status;
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }

    public static GroupResult create(ImStatus status, Group group) {
        GroupResult groupResult = new GroupResult();
        groupResult.setStatus(status);
        groupResult.setGroup(group);
        return groupResult;
    }

    public static GroupResult create(ImStatus status) {
        GroupResult groupResult = new GroupResult();
        groupResult.setStatus(status);
        return groupResult;
    }
}
